package tt.lab.designparttern.singleton;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		SingleInstance instance1 = SingleInstance.getInstance();
		System.out.println("Test.main(): instance1: "+instance1);
		
		SingleInstance instance2 = SingleInstance.getInstance();
		System.out.println("Test.main(): instance2: "+instance2);
		
		System.out.println("Test.main(): 0: "+instance1.getNextVal());
		System.out.println("Test.main(): 1: "+instance2.getNextVal());
		
		instance1.test();
		instance2.test();
	}

}
